package com.ttedu.database.service.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ttedu.database.dao.chaptertipsMapper;
import com.ttedu.database.model.chaptertips;
import com.ttedu.database.model.chaptertipsExample;
import com.ttedu.database.service.ChaptertipsService;
@Service
public class ChaptertipsServiceImpl implements ChaptertipsService{
	@Autowired
	private chaptertipsMapper chaptertipsmapper;
	public List<chaptertips> selectAll(){
		chaptertipsExample example=new chaptertipsExample();
		return chaptertipsmapper.selectByExample(example);
	}
	public chaptertips selectByPrimaryKey(int id){
		return chaptertipsmapper.selectByPrimaryKey(id);
	}
	
	public int insert(chaptertips chapter){
		return chaptertipsmapper.insert(chapter);
	}
	public void deleteByPrimaryKey(int id){
		chaptertipsmapper.deleteByPrimaryKey(id);
	}
	public void updateByPrimaryKey(chaptertips chapter){
		chaptertipsmapper.updateByPrimaryKey(chapter);
	}
}
